"""
Strategy: Modified Tit-for-Tat

First 2 Rounds: Always hunt to build up reputation
After: If opponent has hunted >= 50% of time, cooperate.
       Else, slack.
       
If our starting food for a round is lower than 2 * (# other players), 
then slack for that round.

"""


def hunt_choices(round_number, current_food, current_reputation, m,
            player_reputations):
    
    food_low = 2 * (len(player_reputations) - 1)
    
    hunt_decisions = []
    if (round_number <= 2):
        for reputation in player_reputations:
            hunt_decisions.append('h')
        return hunt_decisions
    elif (current_food <= food_low):
        for reputation in player_reputations:
            hunt_decisions.append('s')
        return hunt_decisions
    else:
        for reputation in player_reputations:
            if (reputation >= 0.5):
                hunt_decisions.append('h')
            else:
                hunt_decisions.append('s')
        return hunt_decisions


def hunt_outcomes(food_earnings):
    pass # do nothing

def round_end(award, m, number_hunters):
    pass # do nothing